from flask import Blueprint,session,redirect,render_template

us=Blueprint('user',__name__)

@us.route('/user/list')
def user_list():
    # 读取cookie获取用户信息
  user_info=session.get('user_info')
  if not user_info:
    return redirect('/login')
  print(user_info)
  return render_template("user.html")